﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DataTemplate x:Key="PreviewDataTemplate">
        <TextBlock Text="{Binding}" Foreground="Black" FontSize="14" HorizontalAlignment="Center"/>
    </DataTemplate>

    <Style x:Key="PreviewStyle" TargetType="{x:Type ContentControl}">
        <Setter Property="ContentTemplate" Value="{StaticResource PreviewDataTemplate}"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Margin" Value="-20,-22,0,0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ContentControl}">
                    <Grid Margin="-5" Width="50">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
                        <Grid.Effect>
                            <DropShadowEffect BlurRadius="5"  ShadowDepth="2"/>
                        </Grid.Effect>
                        <Rectangle Stroke="White" StrokeThickness="0.5" Fill="{StaticResource ListBoxBackgroundBrush}"/>
                        <Path Stretch="Fill" Stroke="White" HorizontalAlignment="Center" Margin="20,-1,0,-1" VerticalAlignment="Stretch" Width="0.5" Data="M18.875,30.200352 L19.125,20" Grid.Row="1" />

                        
                        <ContentPresenter />
                       
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="White"/>
    </Style>
</ResourceDictionary>